package com.cn.service;

import com.cn.entity.Card;
import com.cn.mapper.CardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CardService {
    @Autowired
    CardMapper cardMapper;

    public Card getById(int id){
        return cardMapper.getById(id);
//        Card card = new Card();
//        card.setId(1);
//        card.setCode("123");
//        return card;
    }
}
